package community.hospital.convert;

import community.hospital.entity.Schedule;
import community.hospital.entity.request.ScheduleRequest;
import community.hospital.entity.response.ScheduleResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author yindingjie
 */
@Mapper
public interface ScheduleConvert {
    ScheduleConvert INSTANCE = Mappers.getMapper(ScheduleConvert.class);

    ScheduleResponse converToResp(Schedule schedule);

    Schedule convertToSchedule(ScheduleRequest scheduleRequest);


}
